package com.qyhl.module_practice.study.detail;

import com.qyhl.webtv.commonlib.entity.news.NewsBean;

import java.util.List;

public class PracticeNewStudyPresenter implements PracticeNewStudyContract.PracticeNewStudyPresenter {
    private PracticeNewStudyActivity mView;
    private PracticeNewStudyModel mModel;

    PracticeNewStudyPresenter(PracticeNewStudyActivity mView) {
        this.mView = mView;
        this.mModel = new PracticeNewStudyModel(this);
    }


    @Override
    public void getSectionId(String id) {
        mModel.getSectionId(id);
    }

    @Override
    public void setIdResult(String sectionId) {
        mView.setIdResult(sectionId);
    }

    @Override
    public void getData(String sectionId, String newsId) {
        mModel.getData(sectionId, newsId);
    }

    @Override
    public void setData(List<NewsBean> beanList, boolean isMore) {
        mView.setData(beanList, isMore);
    }

    @Override
    public void setError(String msg, boolean isMore) {
        mView.setError(msg, isMore);
    }
}
